<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <table id="usertable" border="1">
        <tr>
<td>名字</td>
<td>家乡</td>
<td>工作城市</td>
<td>工作</td></tr>
    </table>
    <!-- 把对象显示到页面上 -->
    <script>
        const person={
            name:'龚春红',
            hometown:'新余',
city:'江西',
job:'web developer',
        }
        //DOM html 标签
        //js 通向html世界的编程 dom
const t=document.querySelector('#usertable');
        t.innerHTML+=`<tr>
            <td>${person.name}</td>
            <td>${person.hometown}</td>
            <td>${person.city}</td>
            <td>${person.job}</td>
            </tr>`;
    </script>
</body>
</html>